const COURSE_NAMESPACE = 'order'

export function GET_ORDER_LIST(payload) {
  return {
    type: `${COURSE_NAMESPACE}/fetch`,
    payload,
  }
}

export function GET_ORDER_DETAIL(payload) {
  return {
    type: `${COURSE_NAMESPACE}/fetchDetail`,
    payload,
  }
}

export function GET_PAY_ORDER_DETAIL(payload) {
  return {
    type: `${COURSE_NAMESPACE}/payDetail`,
    payload,
  }
}

export function DELETE_ORDER(payload) {
  return {
    type: `${COURSE_NAMESPACE}/deleteOrder`,
    payload,
  }
}

export function CANCEL_ORDER(payload) {
  return {
    type: `${COURSE_NAMESPACE}/cancelOrder`,
    payload,
  }
}